package com.example.myapplication.entity;

import java.io.Serializable;

public class Message implements Serializable {

    private Integer id;
    private String userName; // 用户名
    private String latestMessage; // 最新的消息内容
    private String time; // 时间
    private String portrait; // 头像

    public Message() {
    }

    public Message(Integer id, String userName, String latestMessage, String time, String portrait) {
        this.id = id;
        this.userName = userName;
        this.latestMessage = latestMessage;
        this.time = time;
        this.portrait = portrait;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getLatestMessage() {
        return latestMessage;
    }

    public void setLatestMessage(String latestMessage) {
        this.latestMessage = latestMessage;
    }

    public String getTime() {
        return time;
    }

    public void setTime(String time) {
        this.time = time;
    }

    public String getPortrait() {
        return portrait;
    }

    public void setPortrait(String portrait) {
        this.portrait = portrait;
    }
}
